#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

vector<string> sortPeople(vector<string>& names, vector<int>& heights) {
    int n = names.size();
    vector<int> index(n);
    for (int i = 0; i < n; ++i)
        index[i] = i;

    sort(index.begin(), index.end(), [&](int i, int j) {
        return heights[i] > heights[j];
        });

    vector<string> ret;
    for (auto i : index)
        ret.push_back(names[i]);

    return ret;
}

int main()
{

	return 0;
}